<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.4"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Flow: flow::net_flow::Peer_socket::Sent_packet::Sent_when Struct Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">Flow<span id="projectnumber">&#160;2.0.0</span>
   </div>
   <div id="projectbrief">Flow project: Full implementation reference.</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.4 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search",'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespaceflow.html">flow</a></li><li class="navelem"><a class="el" href="namespaceflow_1_1net__flow.html">net_flow</a></li><li class="navelem"><a class="el" href="classflow_1_1net__flow_1_1Peer__socket.html">Peer_socket</a></li><li class="navelem"><a class="el" href="structflow_1_1net__flow_1_1Peer__socket_1_1Sent__packet.html">Sent_packet</a></li><li class="navelem"><a class="el" href="structflow_1_1net__flow_1_1Peer__socket_1_1Sent__packet_1_1Sent__when.html">Sent_when</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-attribs">Public Attributes</a> &#124;
<a href="structflow_1_1net__flow_1_1Peer__socket_1_1Sent__packet_1_1Sent__when-members.html">List of all members</a>  </div>
  <div class="headertitle"><div class="title">flow::net_flow::Peer_socket::Sent_packet::Sent_when Struct Reference</div></div>
</div><!--header-->
<div class="contents">

<p>Data store to keep timing related info when a packet is sent out.  
 <a href="structflow_1_1net__flow_1_1Peer__socket_1_1Sent__packet_1_1Sent__when.html#details">More...</a></p>
<div class="dynheader">
Collaboration diagram for flow::net_flow::Peer_socket::Sent_packet::Sent_when:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="structflow_1_1net__flow_1_1Peer__socket_1_1Sent__packet_1_1Sent__when__coll__graph.svg" width="347" height="143"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-attribs" name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:a5265c3824ad25d1de4f888fa811dd4e6"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classflow_1_1net__flow_1_1Peer__socket.html#a797a524b73e2626fcfefe1be64f4d481">order_num_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structflow_1_1net__flow_1_1Peer__socket_1_1Sent__packet_1_1Sent__when.html#a5265c3824ad25d1de4f888fa811dd4e6">m_order_num</a></td></tr>
<tr class="memdesc:a5265c3824ad25d1de4f888fa811dd4e6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Order number of the packet.  <a href="structflow_1_1net__flow_1_1Peer__socket_1_1Sent__packet_1_1Sent__when.html#a5265c3824ad25d1de4f888fa811dd4e6">More...</a><br /></td></tr>
<tr class="separator:a5265c3824ad25d1de4f888fa811dd4e6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad513e58f4eb611c3a91d96df26f53f2c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespaceflow.html#a9d9cc2eeb10d398cff5591d446b763b8">Fine_time_pt</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structflow_1_1net__flow_1_1Peer__socket_1_1Sent__packet_1_1Sent__when.html#ad513e58f4eb611c3a91d96df26f53f2c">m_sent_time</a></td></tr>
<tr class="memdesc:ad513e58f4eb611c3a91d96df26f53f2c"><td class="mdescLeft">&#160;</td><td class="mdescRight">The timestamp when the packet is sent out.  <a href="structflow_1_1net__flow_1_1Peer__socket_1_1Sent__packet_1_1Sent__when.html#ad513e58f4eb611c3a91d96df26f53f2c">More...</a><br /></td></tr>
<tr class="separator:ad513e58f4eb611c3a91d96df26f53f2c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abc5bf2e627dad5d2dcfb0324853b37f7"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structflow_1_1net__flow_1_1Peer__socket_1_1Sent__packet_1_1Sent__when.html#abc5bf2e627dad5d2dcfb0324853b37f7">m_sent_cwnd_bytes</a></td></tr>
<tr class="memdesc:abc5bf2e627dad5d2dcfb0324853b37f7"><td class="mdescLeft">&#160;</td><td class="mdescRight">The congestion window size (in bytes) that is used when the packet is sent out.  <a href="structflow_1_1net__flow_1_1Peer__socket_1_1Sent__packet_1_1Sent__when.html#abc5bf2e627dad5d2dcfb0324853b37f7">More...</a><br /></td></tr>
<tr class="separator:abc5bf2e627dad5d2dcfb0324853b37f7"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p >Data store to keep timing related info when a packet is sent out. </p>
<p >Construct via direct member initialization. It is copy-constructible (for initially copying into containers and such) but not assignable to discourage unneeded copying (though it is not a heavy structure). Update: A later version of clang does not like this technique and warns about it; to avoid any such trouble just forget the non-assignability stuff; it's internal code; we should be fine. </p>

<p class="definition">Definition at line <a class="el" href="peer__socket_8hpp_source.html#l02279">2279</a> of file <a class="el" href="peer__socket_8hpp_source.html">peer_socket.hpp</a>.</p>
</div><h2 class="groupheader">Member Data Documentation</h2>
<a id="a5265c3824ad25d1de4f888fa811dd4e6" name="a5265c3824ad25d1de4f888fa811dd4e6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5265c3824ad25d1de4f888fa811dd4e6">&#9670;&nbsp;</a></span>m_order_num</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="classflow_1_1net__flow_1_1Peer__socket.html#a797a524b73e2626fcfefe1be64f4d481">order_num_t</a> flow::net_flow::Peer_socket::Sent_packet::Sent_when::m_order_num</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Order number of the packet. </p>
<p >This can be used to compare two packets sent out; the one with the higher order number was sent out later. See <a class="el" href="classflow_1_1net__flow_1_1Peer__socket.html#a1ec79951579d595bb790be87189d6e6c" title="For the Sent_packet representing the next packet to be sent, this is the value to assign to m_sent_wh...">Peer_socket::m_snd_last_order_num</a>. The per-socket next-value for this is incremented each time another packet is sent out.</p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="structflow_1_1net__flow_1_1Peer__socket_1_1Sent__packet.html#a3acccd2fcd0f4a0c5f7f0c2d6ad31c2e" title="Time stamps, order numbers, and other info at the times when the different attempts (including origin...">Peer_socket::Sent_packet::m_sent_when</a> for more discussion.</dd></dl>
<dl class="todo"><dt><b><a class="el" href="todo.html#_todo000134">Todo:</a></b></dt><dd>Can we make <a class="el" href="structflow_1_1net__flow_1_1Peer__socket_1_1Sent__packet_1_1Sent__when.html#a5265c3824ad25d1de4f888fa811dd4e6" title="Order number of the packet.">Sent_when::m_order_num</a> and some of its peers const? </dd></dl>

<p class="definition">Definition at line <a class="el" href="peer__socket_8hpp_source.html#l02294">2294</a> of file <a class="el" href="peer__socket_8hpp_source.html">peer_socket.hpp</a>.</p>

<p class="reference">Referenced by <a class="el" href="peer__socket_8cpp_source.html#l02892">flow::net_flow::Node::categorize_pkts_as_dropped_on_acks()</a>, <a class="el" href="peer__socket_8cpp_source.html#l02826">flow::net_flow::Node::compute_rtt_on_ack()</a>, <a class="el" href="peer__socket_8cpp_source.html#l03058">flow::net_flow::Node::drop_pkts_on_acks()</a>, and <a class="el" href="peer__socket_8cpp_source.html#l02017">flow::net_flow::Node::handle_accumulated_acks()</a>.</p>

</div>
</div>
<a id="abc5bf2e627dad5d2dcfb0324853b37f7" name="abc5bf2e627dad5d2dcfb0324853b37f7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abc5bf2e627dad5d2dcfb0324853b37f7">&#9670;&nbsp;</a></span>m_sent_cwnd_bytes</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">size_t flow::net_flow::Peer_socket::Sent_packet::Sent_when::m_sent_cwnd_bytes</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>The congestion window size (in bytes) that is used when the packet is sent out. </p>
<p >We store this to pass to the congestion control module when this packet is acked in the future. Some congestion control algorithms compute CWND based on an earlier CWND value. Not <code>const</code> for similar reason as <a class="el" href="structflow_1_1net__flow_1_1Peer__socket_1_1Sent__packet_1_1Sent__when.html#ad513e58f4eb611c3a91d96df26f53f2c" title="The timestamp when the packet is sent out.">m_sent_time</a>.</p>
<dl class="todo"><dt><b><a class="el" href="todo.html#_todo000135">Todo:</a></b></dt><dd>Why is <a class="el" href="structflow_1_1net__flow_1_1Peer__socket_1_1Sent__packet_1_1Sent__when.html#abc5bf2e627dad5d2dcfb0324853b37f7" title="The congestion window size (in bytes) that is used when the packet is sent out.">m_sent_cwnd_bytes</a> in <a class="el" href="structflow_1_1net__flow_1_1Peer__socket_1_1Sent__packet_1_1Sent__when.html" title="Data store to keep timing related info when a packet is sent out.">Sent_when</a> <code>struct</code> and not directly in <code><a class="el" href="structflow_1_1net__flow_1_1Peer__socket_1_1Sent__packet.html" title="Metadata (and data, if retransmission is on) for a packet that has been sent one (if retransmission i...">Sent_packet</a></code>? Or maybe it should stay here, but <a class="el" href="structflow_1_1net__flow_1_1Peer__socket_1_1Sent__packet_1_1Sent__when.html" title="Data store to keep timing related info when a packet is sent out.">Sent_when</a> should be renamed <code>Send_attempt</code> (or <code>Send_try</code> for brevity)? Yeah, I think that's it. Then <a class="el" href="structflow_1_1net__flow_1_1Peer__socket_1_1Sent__packet.html#a3acccd2fcd0f4a0c5f7f0c2d6ad31c2e" title="Time stamps, order numbers, and other info at the times when the different attempts (including origin...">Sent_packet::m_sent_when</a> &ndash; a container of <a class="el" href="structflow_1_1net__flow_1_1Peer__socket_1_1Sent__packet_1_1Sent__when.html" title="Data store to keep timing related info when a packet is sent out.">Sent_when</a> objects &ndash; would become <code>m_send_tries</code>, a container of <code>Send_try</code> objects. That makes more sense (sentce?!) than the status quo which involves the singular-means-plural strangeness.</dd></dl>
<dl class="todo"><dt><b><a class="el" href="todo.html#_todo000136">Todo:</a></b></dt><dd>Can we make <a class="el" href="structflow_1_1net__flow_1_1Peer__socket_1_1Sent__packet_1_1Sent__when.html#abc5bf2e627dad5d2dcfb0324853b37f7" title="The congestion window size (in bytes) that is used when the packet is sent out.">m_sent_cwnd_bytes</a> and some of its peers <code>const</code>? </dd></dl>

<p class="definition">Definition at line <a class="el" href="peer__socket_8hpp_source.html#l02324">2324</a> of file <a class="el" href="peer__socket_8hpp_source.html">peer_socket.hpp</a>.</p>

<p class="reference">Referenced by <a class="el" href="peer__socket_8cpp_source.html#l02017">flow::net_flow::Node::handle_accumulated_acks()</a>.</p>

</div>
</div>
<a id="ad513e58f4eb611c3a91d96df26f53f2c" name="ad513e58f4eb611c3a91d96df26f53f2c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad513e58f4eb611c3a91d96df26f53f2c">&#9670;&nbsp;</a></span>m_sent_time</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespaceflow.html#a9d9cc2eeb10d398cff5591d446b763b8">Fine_time_pt</a> flow::net_flow::Peer_socket::Sent_packet::Sent_when::m_sent_time</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>The timestamp when the packet is sent out. </p>
<p >This may be "corrected" when actually sent <em>after</em> pacing delay (hence not <code>const</code>).</p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="namespaceflow.html#a8f2e48761f9ca3ffcaa29872078bbf00" title="Clock used for delicate time measurements, such that the now() method gets the current time relative ...">Fine_clock</a>. Recall that, due to latter's properties, <code>Fine_clock::now()</code> results monotonically increase over time &ndash; a property on which we rely on, particularly since this data member is only assigned <code>Fine_clock::now()</code> at various times.</dd>
<dd>
<a class="el" href="structflow_1_1net__flow_1_1Peer__socket_1_1Sent__packet.html#a3acccd2fcd0f4a0c5f7f0c2d6ad31c2e" title="Time stamps, order numbers, and other info at the times when the different attempts (including origin...">Peer_socket::Sent_packet::m_sent_when</a> for more discussion. </dd></dl>

<p class="definition">Definition at line <a class="el" href="peer__socket_8hpp_source.html#l02306">2306</a> of file <a class="el" href="peer__socket_8hpp_source.html">peer_socket.hpp</a>.</p>

<p class="reference">Referenced by <a class="el" href="peer__socket_8cpp_source.html#l03058">flow::net_flow::Node::drop_pkts_on_acks()</a>.</p>

</div>
</div>
<hr/>The documentation for this struct was generated from the following file:<ul>
<li>net_flow/<a class="el" href="peer__socket_8hpp_source.html">peer_socket.hpp</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Fri Mar 28 2025 22:55:36 for Flow by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.4
</small></address>
</body>
</html>
